// 导入axios工具
import request from '@/utils/request'

// 封装函数
export function login(data) {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
  // return request.post('/api/sys/login', data)
}

export function getProfile() {
  return request({
    url: '/sys/profile',
    method: 'post'
  })
}

export function getUserDetailById(id) {
  return request.get(`/sys/user/${id}`)
}

